{template "header.html"}
{template "index-fanhui.html"}

<!--div class="d-container ">
	<div class="d-row">
		<div class="d-col-md-8-juzhong">
			<div class="d-kuan d-beijing-baise d-yuanjiao-bianhua-10-10 d-hanggao-50" >
				{loop $module_memu $i $t}
				{if $i == 'list' || $i == 'verify'}
				<div class="baifen-20 d-wenzi-juzhong d-quxian-0 {if $mcid==$i} d-beijing-hei-cf{/if}">
					<a href="{$t.url}"> <i class="{$t.icon}"></i> 
					{if $i == 'list'} 圈子 {else} {$t.name} {/if}
					</a>
				</div> 
				{/if}
				{/loop}
				
				{if $id}
				<div class="baifen-20 d-wenzi-juzhong d-quxian-0 d-beijing-hei-cf">
					<a href="{dr_now_url()}"> <i class="fa fa-edit"></i> 修改 </a>
				</div>
				{/if}
				<div class="d-clear"></div>
			</div> 
		</div> 
	</div> 
</div-->
<div class="d-clear"></div>
<form action="" class="" method="post" name="myform" id="myform">
<div class="d-container ">
	<div class="d-row">
		<div class="d-col-md-8-juzhong">
			<div class="d-kuan d-beijing-baise" >
				
					{$form}
					<div class="d-neikuang-20">
						{if $catid && $module['category'][$catid]['setting']['notedit']}
						<label style="margin-top: 7px;">
						    <span class="label label-sm label-success circle">{$module['category'][$catid]['name']}</span>
						</label>
						<input type="hidden" id="dr_catid" name="catid" value="{$catid}">
						{else}
						<label>{$select}</label>
						{if $module['setting']['sync_category']}
						{if !$id || $is_sync_cat}
						<label style="margin-right:10"><a href="javascript:;" onclick="dr_syncat()">[{dr_lang('同步发布到其他栏目')}]</a></label>
						<label>
						    <input id="dr_syncatid" name="sync_cat" type="hidden" value="{$is_sync_cat}" />
						    <span id="dr_syncat_text" class="label label-success" style="display: {if $is_sync_cat}blank{else}none{/if};"><b id="dr_syncat_num">{php echo substr_count((string)$is_sync_cat, ',') + 1;}</b></span>
						</label>
						{else if $link_id != 0}
						<label>{dr_lang('修改内容时会同步更新其他外联文档')}</label>
						{/if}
						{/if}
						{/if}
						<div class="d-clear"></div>
					</div>
					
						{$myfield}
						{if $is_post_code}
						<div class="form-group" id="dr_row_code">
						    <label class="control-label col-md-2"><span class="required" aria-required="true"> * </span> {dr_lang('验证码')}</label>
						    <div class="col-md-5">
						        <label>
						            <div class="form-recaptcha" style="width:270px;">
						                <div class="input-group">
						                    <input type="text" id="dr_code" class="form-control" name="code">
						                    <div class="input-group-btn fc-code">
						                        {dr_code(120, 35)}
						                    </div>
						                </div>
						            </div>
						        </label>
						    </div>
						</div>
						{/if}
					{if $is_verify && $backinfo}
					<div class="portlet  ">
					    <div class="portlet-body">
					        <div class="form-body">
					            <div class="form-group">
					                <label class="col-md-2 control-label">审核人</label>
					                <div class="col-md-9">
					                    <p class="form-control-static">
					                        {$backinfo.author}
					                    </p>
					                </div>
					            </div>
					            <div class="form-group">
					                <label class="col-md-2 control-label">审核时间</label>
					                <div class="col-md-9">
					                    <p class="form-control-static">
					                        {dr_date($backinfo.optiontime)}
					                    </p>
					                </div>
					            </div>
					            <div class="form-group">
					                <label class="col-md-2 control-label">拒绝理由</label>
					                <div class="col-md-9">
					                    <p class="form-control-static">
					                        {$backinfo.backcontent}
					                    </p>
					                </div>
					            </div>
					
					
					        </div>
					    </div>
					</div>
					{/if}
					<div class="d-gao-5"></div>					
						
					
					<div class="d-clear"></div>
				
				<div class="d-clear"></div>
			</div> 
		</div> 
	</div> 
</div>
<div class="d-gao-70 d-kuan"></div>
<div class="form myfooter d-dibu">
	<div class="form-actions text-center">
		{if $is_verify}
		<button type="button" onclick="$('#dr_is_draft').val(0);dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('提交重新审核')}</button>
		{else}
		<!--label><button type="button" onclick="$('#dr_is_draft').val(0);dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn blue"> <i class="fa fa-save"></i> {dr_lang('保存内容')}</button></label>
		<label><button type="button" onclick="$('#dr_is_draft').val(0);dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$post_url}&catid='+$('#dr_catid').val())" class="btn green"> <i class="fa fa-plus"></i> {dr_lang('保存再添加')}</button></label-->
		<label><button type="button" onclick="$('#dr_is_draft').val(0);dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}')" class="btn yellow"> <i class="fa fa-mail-reply-all"></i> {dr_lang('发布')}</button></label>
		<!--label><button type="button" onclick="$('#dr_is_draft').val(1);dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn red"> <i class="fa fa-pencil"></i> {dr_lang('保存草稿')}</button></label-->
		{/if}
	</div>
</div>
</form>
<script>
    function show_category_field(catid) {
        {if $category_field_url}
        window.location.href = '{$category_field_url}&catid='+catid;
        {/if}
        }
        function dr_syncat() {
            var width = '40%';
            var height = '60%';
            var title = '<i class="fa fa-refresh"></i> {dr_lang('同步到其他栏目')}';
            var url = '{dr_member_url(MOD_DIR.'/home/syncat_edit')}&catid='+$('#dr_syncatid').val();
            layer.open({
                type: 2,
                title: title,
                shadeClose: true,
                shade: 0,
                area: [width, height],
                btn: [lang['ok']],
                yes: function(index, layero){
                    var body = layer.getChildFrame('body', index);
                    $(body).find('.form-group').removeClass('has-error');
                    // 延迟加载
                    var loading = layer.load(2, {
                        shade: [0.3,'#fff'], //0.1透明度的白色背景
                        time: 10000
                    });
                    $.ajax({type: "POST",dataType:"json", url: url, data: $(body).find('#myform').serialize(),
                        success: function(json) {
                            layer.close(loading);
                            if (json.code == 1) {
                                layer.close(index);
                                $('#dr_syncatid').val(json.data);
                                $('#dr_syncat_text').show();
                                $('#dr_syncat_num').html(json.msg);
                            } else {
                                dr_tips(json.code, json.msg);
                            }
                            return false;
                        },
                        error: function(HttpRequest, ajaxOptions, thrownError) {
                            dr_ajax_alert_error(HttpRequest, this, thrownError);;
                        }
                    });
                    return false;
                },
                content: url+'&is_ajax=1'
            });
        }
</script>
<style>
	.form-control {
		width: 100%;
		height: 34px;
		padding: 6px 12px;
		margin-bottom: 10px;
		background-color: #f3f4f7;
		border: 1px solid #f3f4f7;
		-webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
		-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
		-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
		transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    }
	#dr_row_fabuzu {
		display: none;
	}
	#dr_row_tjyhz {
		display: none;
	}
	.d_name_beijingyanse {
		display: none;
	}
	.d_name_title {
		display: none;
	}
	.d_name_thumb {
		display: none;
	}
	.finecms-file-ts {
		display: none;
	}
	.d_name_keywords {
		display: none;
	}
	.d_name_zt {
		display: none;
	}
	.d_name_price {
		display: none;
	}
	.d_name_author {
		display: none;
	}
	.d_name_glqz {
		display: none;
	}
	.mt-checkbox, .mt-radio {
	    display: inline-block;
	    position: relative;
	    padding-left: 30px;
	    line-height: 20px;
	    /* margin-bottom: 15px; */
	    cursor: pointer;
	    font-size: 14px;
	    webkit-transition: all .3s;
	    -moz-transition: all .3s;
	    -ms-transition: all .3s;
	    -o-transition: all .3s;
	    transition: all .3s;
	}
	.mt-checkbox-inline, .mt-radio-inline {
		padding: 0px 0;
	}
	#dr_row_author {
		display: none;
	}
	.dr_row_quanbu {
		line-height: 20px;
	}
	.preview {
	    height: 100px;
	    border: 1px solid #f5f5f5;
	}
	.preview, .smallImg {
	    width: 100%;
	    overflow: hidden;
	}
	.files_row_preview {
	    margin-right: 10px;
	    border: 1px dashed #e2e2e2;
	    padding: 10px;
	    overflow: hidden;
	    width: 80px;
	    height: 70px;
	    text-align: center;
	}
</style>
{template "fanhui.html"}
{template "mfooter.html"}